These are the replication materials for �Elections, War, and Gender: \\Self-Selection and the Pursuit of Victory�The main root data file is sessionscombined.csv.ioreplicationscript_2024_06_06.R is the R script for the main analysis for all the tables and figures in the manuscript and appendix.  Note that it also calls a file called ranunopposed_scmanualcoding.csv which is just a file where we manually coded elections where someone ran unopposed.  It also calls the file messages_2020_12_23.csv which is the dataset of coded campaign messages.ioreplicationscript_demographicsonly_2024_05_27.R is an R script that makes the figures comparing our demographic data to CCES.  It calls the data file cces_2006_2018.rds.For any questions or other issues, please email:Stephen Chaudoinstephen.chaudoin@gmail.com